package Java_promotion_136_228.Java206_228;

import java.util.ArrayList;

public class _214 {
    public static void main(String[] args) {
//创建集合
        ArrayList<String> recordlist = new ArrayList<>();//保存的模拟数据
        recordlist.add("赵丽颖,98");
        recordlist.add("迪丽热巴,80");
        recordlist.add("古力娜扎,98");

        //Stream API更优写法
        recordlist.stream().map(s -> s.split(",")[1]).map(Integer::parseInt).filter(n -> n > 90).forEach(System.out::println);

    }
}
